package info.androidhive.actionbar;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.*;
import android.widget.*;

public class IntroActivity extends Activity {

	public static final int REQUEST_CODE_MAINACTIVITY=1001;
	public static final int REQUEST_CODE_FRAGMENT01=2001;
	public static final int REQUEST_CODE_REGISTER=3001;
	//public static final int REQUEST_CODE_CONFIGURE=4001;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.intro_activity);
		
		EditText editLogEmail =(EditText)findViewById(R.id.editLoginEmail);
	    EditText editLogPW =(EditText)findViewById(R.id.editLoginPW);
		
		Button btnLogin = (Button)findViewById(R.id.btnLogin);
		btnLogin.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v){
				Intent intent = new Intent(getBaseContext(), SlidingMenuMain.class);
				startActivityForResult(intent, 5555);
			}
		});
		Button btnFaceLogin = (Button)findViewById(R.id.btnFaceLogin);
		btnFaceLogin.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v){
				//Intent intent = new Intent(getBaseContext(), SMSGroupListView.class);
				//startActivityForResult(intent, REQUEST_CODE_SMSGROUPLISTVIEW);
			}
		});
		Button btnRegister = (Button)findViewById(R.id.btnRegister);
		btnRegister.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v){
				Intent intent = new Intent(getBaseContext(), Register.class);
				startActivityForResult(intent, REQUEST_CODE_REGISTER);
			}
		});
		Button btnNonLogin = (Button)findViewById(R.id.btnNonLogin);
		btnNonLogin.setOnClickListener(new Button.OnClickListener() {
			public void onClick(View v){
				Intent intent = new Intent(getBaseContext(), MainActivity.class);
				startActivityForResult(intent, REQUEST_CODE_MAINACTIVITY);
			}
		});

		

	}


	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		//getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
